package com.ecut.property_project.service.building;

import com.ecut.property_project.mapper.building.BuildingAssessMapper;
import com.ecut.property_project.model.building.BuildingAssess;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BuildingAssessService{

    @Resource
    private BuildingAssessMapper buildingAssessMapper;

    
    public int deleteByPrimaryKey(Integer assessId) {
        return buildingAssessMapper.deleteByPrimaryKey(assessId);
    }

    
    public int insert(BuildingAssess record) {
        return buildingAssessMapper.insert(record);
    }

    
    public int insertSelective(BuildingAssess record) {
        return buildingAssessMapper.insertSelective(record);
    }

    public List<BuildingAssess> selectAll(){ return buildingAssessMapper.selectAll(); }

    public List<BuildingAssess> selectByPage(Integer page, Integer pageSize){return buildingAssessMapper.selectByPage(page,pageSize);}


    public BuildingAssess selectByPrimaryKey(Integer assessId) {
        return buildingAssessMapper.selectByPrimaryKey(assessId);
    }

    public List<BuildingAssess> selectByHeadId(String headId){
        return buildingAssessMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(BuildingAssess record) {
        return buildingAssessMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BuildingAssess record) {
        return buildingAssessMapper.updateByPrimaryKey(record);
    }

}
